package com.luobo.found.prototype;

/**
 * 浅拷贝
 */
public class BBB implements Cloneable {
    private String name;

    public BBB(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    @Override
    protected BBB clone() throws CloneNotSupportedException {
        BBB bbb = null;
        try {
            bbb = (BBB) super.clone();
        }catch (CloneNotSupportedException e){
            e.printStackTrace();
        }
        return bbb;
    }

}
